package com.ws.user.role.dao;

import com.ws.user.role.entity.RolePermission;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Mapper
public interface RolePermissionMapper{

   public List<RolePermission> list(RolePermission params);

    @Delete("delete from role_Permission where role_Id=#{roleId}")
    Integer deleteByRoleId(@Param("roleId") String roleId);
}